package com.java;

/**
 * 定义一个类，用来模拟手机"手机"事物
 * 属性：品牌、价格、颜色
 * String brand
 * double price
 * String color
 * 行为：打电话、发短信
 * public void call(String who){}
 * public void sendMessage(){}
 */
public class Phone {
    String brand;
    double price;
    String color;

    public void call(String who){
        System.out.println("给"+ who + "打电话");
    }

    public void sendMessage(){
        System.out.println("群发短信");
    }
}
